package com.wanxi.util;

import java.util.Random;

public class MyRandom {
    public static void main(String[] args) {
        Random random = new Random();
        int i = random.nextInt(10);
//        [20-55]之间的整数 start ,end
//        random.nextInt(end - start) + start+1;
        i = random.nextInt(55 - 20) + 20;
        System.out.println(i);
    }
}
